package com.tpo.jnotes.client.layer.model.entity;

import com.tpo.jnotes.client.lib.exception.EntityClassNotFoundException;
import com.tpo.jnotes.client.lib.interfaces.IModelEntity;

public class EntityFactory
{

    public static Class< ? extends IModelEntity > getEntityClass( EntitiesEnum entityType )
        throws EntityClassNotFoundException
    {
        switch( entityType )
        {
            case ESUB:
                return ENote.class;
            default:
                throw new EntityClassNotFoundException();
        }
    }
}
